package xyz.xxin.xat.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.opengl.GLSurfaceView;
import android.os.Bundle;

import xyz.xxin.xat.R;
import xyz.xxin.xat.slsurface.MyRenderer;

public class GLSurfaceActivity extends AppCompatActivity {

    private GLSurfaceView g_l_surface;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glsurface);

        findView();
        initView();
    }

    private void initView() {
        // 设置渲染器
        g_l_surface.setRenderer(new MyRenderer());
    }

    private void findView() {
        g_l_surface = findViewById(R.id.g_l_surface);
    }
}